Mega Code Archive

Categories
1) Android
2) ASP.Net
3) ASP.Net Tutorial
4) C
5) C Tutorial
6) C#
7) C# Book
8) C# by API
9) C# Tutorial
10) C++
11) C++ Tutorial
12) Delphi
13) Flash ActionScript
14) Flex
15) Java
16) Java Book
17) Java by API
18) Java Tutorial
19) JavaScript DHTML
20) JavaScript Reference
21) JavaScript Tutorial
22) MSOfficeExcel 2007 Tutorial
23) MSOfficePowerPoint 2007 Tutorial
24) MSOfficeWord 2007 Tutorial
25) MSSQL
26) MSSQL Tutorial
27) MySQL
28) MySQL Tutorial
29) Oracle PLSQL
30) Oracle PLSQL Tutorial
31) Perl
32) Php
33) PostgreSQL
34) Python
35) Python Tutorial
36) Ruby
37) Silverlight
38) VB.Net
39) VB.Net by API
40) VB.Net Tutorial
41) Visual C++ .NET
42) VisualBasic Script
43) XML
44) XML Tutorial
 
Ruby
1) Active Record
2) Array
3) CGI
4) Class
5) Collections
6) Database
7) Date
8) Design Patterns
9) Development
10) File Directory
11) GUI
12) Hash
13) Language Basics
14) Method
15) Network
16) Number
17) Rails
18) Range
19) Reflection
20) Statement
21) String
22) Threads
23) Time
24) Tk
25) Unit Test
26) Windows Platform
27) XML
Network
1) A client to send data
2) A Simple Feed Aggregator
3) Access to request and response objects
4) An SSH Client
5) Basic Authentication
6) Building a Simple TCP Server
7) Call a web service
8) Call remote server
9) Calling a method made available over XML-RPC
10) Change directory with SSH
11) Change to any directory in the remote filesystem
12) Check body size
13) Check web request status code
14) Checking for Errors and Redirects
15) Checking Machine and Service Availability
16) Connect to a POP3 server to see if there are any messages available for download
17) Connect to Rubys Web server
18) Connecting to a TCP Server Directly
19) Connecting to an FTP server with netftp using an FTP URL is a simple operation
20) Copying a File to Another Machine
21) Create a temporary file with Tempfile and upload from that
22) Create a URL with URI
23) Create multiple servers
24) Create your own basic client using nettelnet
25) Creating a Web Server with thread support
26) Customizing HTTP Request Headers
27) Delete and rename files
28) Deletes messages if their subject contains the word medicines
29) Do a google search and parse the result html
30) Downloading all the mails is as simple as using the pop method for each Net
31) Downloading Files
32) Dump a URL
33) Dumping and Loading XML-RPC Messages
34) Each key in the response
35) E-mail provider
36) Extract URL
37) Extracting All the URLs from an HTML Document
38) File Transfers with FTP
39) Find out what URL the user tried to access in his or her browser
40) For each segment received
41) Ftp mkdir
42) Get a file from a URL
43) Get a secure way of sending sensitive information to the remote server
44) Get all the addresses associated with a hostname
45) Get body of response
46) Get email server
47) Get only http and https based url
48) Get random number from random org
49) Get response code
50) Get response encoding and body
51) Get response for HTTP requests
52) Get server information from the response
53) Get url and response
54) Grab links for anchor and image
55) Grabbing the Contents of a Web Page rb
56) GServer
57) Hpricot can work directly with open-uri to load HTML from remote files
58) If a username and password are required, use this code
59) Instruct ActionMailer to look for an SMTP server
60) Integrate Ruby logic and flow control into the HTML generation process
61) Keep the user informed of the progress of the upload
62) List server files with SSH
63) Mailto URI parse
64) Making a single program send and receive UDP data to and from itself
65) Making an HTTPS Web Request
66) Making an XML-RPC-Enabled Program
67) Manage currently running servers by using several methods GServer makes available to start, stop, and check servers
68) Markaby-Markup As Ruby
69) Mongrel
70) Mongrel server that will return a simple HTML page when http
71) Moving Files Around Using Net
72) Multi-Client TCP Servers
73) Multiple callers
74) Net
75) Open a socket to host and port Read lines from the socket
76) Open in a block style
77) Opening a URI
78) Parsing URLs
79) Performing DNS Queries
80) Posting Form Data
81) Prints a string to the screen whenever another 100 kilobytes of the file have been downloaded
82) Process errors that come back from RPC calls with call2
83) Read a web page
84) Read from a tcp server
85) Read mysql command output
86) Require rubygems
87) Resolv useful for converting between hostnames and IP addresses
88) RSS feed
89) Ruby based remoting
90) Search for the first instance of an element only
91) Search mail server
92) Secure HTTP with HTTPS
93) Send extra header fields with an HTTP request by supplying an optional hash parameter to open
94) Send the mail directly to that user
95) Sending Mail with ActionMailer
96) Sending Mail with SMTP
97) Set a maximum number of allowed connections by supplying more parameters to new
98) Set form data
99) Set the mode to passive
100) Set verify mode for https
101) Specify port number
102) Split a URL
103) The nethttp Library
104) The open-uri Library
105) The shortest open-uri code possible
106) To create a simple Web server, you can accept connections on the IP address 0 0 0 0 and the port number 80
107) To delete a mail
108) To search for MX records you have to use the Resolv
109) Turn a URL into the various pieces needed by nethttp
110) Turn IP addresses into hostnames using the getname method
111) UDP Server Demo
112) Uploading Files
113) URI
114) URI parse
115) Use DRb to start a service
116) Use methods associated with the object it returns to find out particulars about the HTTP (or FTP) response itself
117) Use net-ping to connect to a specific port using TCP or UDP
118) Use open directly upon URI objects
119) Use openuri to open a web link
120) Use the chdir method
121) Use the ping library to check servers that are online
122) Using a combination of search methods, search for the list within the HTML and then extract each item
123) Using a WSDL File to Make SOAP Calls Easier
124) Using CSS classes to find certain elements
125) Using net-ping
126) Verify_mode = OpenSSL
127) Web_proxy replaces the reference to Net
128) WEBrick is a Ruby library that makes it easy to build an HTTP server with Ruby
129) Writing a SOAP Client
130) Writing a SOAP Server
131) Writing an XML-RPC Client
132) Writing XML-RPC Clients
133) Writing XML-RPC Servers
134) XMLRPC call
135) XMLRPC client
136) Zip header